/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package GoMail;

import SingleLinkedList.MySingleList;

/**
 *
 * @author Administrator
 */
public interface ContactsInterface {

    /**
     * This method is used to addMail to contact mail list
     * @param address new mail
     */
    void addMail(String address);

    /**
     * This method is used to get all contact mail
     * @return array of conatact mails
     */
    String[] allMails();

    /**
     * This method is used to get list of  contact mails
     * @return list of  contact mails
     */
    MySingleList getMails();

    /**
     * This method is used to get contact name
     * @return contact name
     */
    String getName();

    /**
     * This method is used to contact data
     * This method is used when contact file is read
     * set Contact name and contact Mails
     * @param s array of strings that contains all contact data
     */
    void setContactData(String[] s);

    /**
     * This method is used to set contact mails only
     * this method is used when contact mails are edited
     * @param s array of contact mails
     */
    void setContactMails(String[] s);

    /**
     * This method is used to set the list of contact mails
     * @param mails new list of  contact mails
     */
    void setMails(MySingleList mails);

    /**
     * This method is used to contact name
     * @param name new contact name
     */
    void setName(String name);

}
